<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.zjzit.cn>
// +----------------------------------------------------------------------

/**
 * 系统配文件
 * 所有系统级别的配置
 */
$config     = array(
    //模块相关配置
    'AUTOLOAD_NAMESPACE' => array('Addons' => ONETHINK_ADDON_PATH), //扩展模块列表
    'DEFAULT_MODULE'     => 'Home',

    //用户相关设置
    'USER_MAX_CACHE'     => 1000,   //最大缓存用户数
    'USER_ADMINISTRATOR' => 1,      //管理员用户ID

    //URL配置
    'URL_CASE_INSENSITIVE' => true,     //默认false 表示URL区分大小写 true则表示不区分大小写
    'URL_MODEL'            => 1,        //URL模式
    'VAR_URL_PARAMS'       => '',       // PATHINFO URL参数变量
    'URL_PATHINFO_DEPR'    => '/',      //PATHINFO URL分割符

    //数据缓存设置
    'DATA_CACHE_PREFIX'    => 'heart_',
    'DATA_CACHE_TYPE'      => 'Redis',
    'DATA_CACHE_TIME'   => 60,

    //阿里云配置
    'ALIYUN_MNS'    => [
        'access_key'    => 'LTAIzcKqVKLdnY1M',
        'access_secret' => '6xb58RHsaCfO7VzyCZERVpJXAKyAHX',
    ],

    // 报错页面配置
    // 'TMPL_EXCEPTION_FILE'   => './Public/exception.php',
    //其他配置
    'PAGE_COUNT'    => 20,
    'DATA_AUTH_KEY' => 'ye4*$D"JYC3auSZM]!lqz{>[hIc^A8f90FrkU&(.', //默认数据加密KEY
    
    //扩展配置
    'LOAD_EXT_CONFIG'   => 'config-field',
);

//引入本地配置
if(file_exists('Application/Common/Conf/config-local.php')){
    $configLocal    = require_once('Application/Common/Conf/config-local.php');
    $config     = array_merge($config, $configLocal);
}

return $config;
